package chp13;

public class Test2 {

    public static void main(String[] args) {
        //引用
        String str = "魔力逆流";
        int len = str.length();
        System.out.println(str + "的字符串长度:" + len);

        str = str + ",哈哈";
        System.out.println(str);
        len = str.length();
        System.out.println(str + "的字符串长度:" + len);

//        String str2 = str + ",哈哈";
//        System.out.println(str2);
//        System.out.println(str2 + "的字符串长度:" + len);
    }

}
